package com.beerq.view;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.WindowManager;

import com.beerq.R;
import com.beerq.util.BeerQPref;

public class AlarmActivity extends BaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {

        WindowManager.LayoutParams windowLP = getWindow().getAttributes();
        windowLP.alpha = 0.7f;
        getWindow().setAttributes(windowLP);


        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_alarm);

        findViewById(R.id.img1).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                BeerQPref.getInstance(AlarmActivity.this).setIsShowAlarm(true);
                finish();
            }
        });

        findViewById(R.id.img2).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                setResult(1);
                finish();
            }
        });

    }
}
